<?php
include "../action/getuid.php";
include '../action/setting.php';
$con = mysqli_connect($sqldatabase, $sqlusername, $sqlpassword, $sqltable);
mysqli_query($con,'set names utf8'); 
$result = mysqli_query($con, "SELECT * FROM softset where uid='" . $uid . "'");
$err_z = "";
$err_o = "";
$err_z_lic = "";
$err_o_lic = "";
$err_t_lic = "";
while ($row = mysqli_fetch_array($result)) {
	$err_z = $row['err_z'];
	$err_o = $row['err_o'];
	$err_z_lic = $row['err_z_lic'];
	$err_o_lic = $row['err_o_lic'];
	$err_t_lic = $row['err_t_lic'];
}
?>
<h1>
	设置
</h1>
<h3>
	软件错误提示修改
</h3>
<div class='am-input-group'>
	<span class='am-input-group-label'>版本验证成功</span>
	<input type="text" value="<?php echo $err_z; ?>" id="err_z" class="am-form-field" placeholder="版本验证成功提示 （2-50字数，数字，英文，汉字）" >
</div>
<br/>
<div class='am-input-group'>
	<span class='am-input-group-label'>版本验证失败</span>
	<input type="text" value="<?php echo $err_o; ?>" id="err_o" class="am-form-field" placeholder="版本验证失败提示 （2-50字数，数字，英文，汉字）" >
</div>
<br/>
<div class='am-input-group'>
	<span class='am-input-group-label'>授权验证成功</span>
	<input type="text" value="<?php echo $err_z_lic; ?>" id="err_lic_z" class="am-form-field" placeholder="授权验证成功提示 （2-50字数，数字，英文，汉字）" >
</div>
<br/>
<div class='am-input-group'>
	<span class='am-input-group-label'>授权验证冻结</span>
	<input type="text" value="<?php echo $err_o_lic; ?>" id="err_lic_o" class="am-form-field" placeholder="授权验证冻结提示 （2-50字数，数字，英文，汉字）" >
</div>
<br/>
<div class='am-input-group'>
	<span class='am-input-group-label'>授权验证删除</span>
	<input type="text" value="<?php echo $err_t_lic; ?>" id="err_lic_t" class="am-form-field" placeholder="授权验证删除提示 （2-50字数，数字，英文，汉字）" >
</div>
<br/>

<button style="float:right;" class="am-btn am-btn-primary" id="saveerrmsg" type="submit">
	保存信息
</button>
<br/>
<br/>
<h3>
	个人信息修改
</h3>
<div class='am-input-group'>
	<span class='am-input-group-label'>昵称</span>
	<input type="text" value="<?php echo $_COOKIE['nickname']; ?>" id="edit_nickname" class="am-form-field" placeholder="新昵称（2-15字数，数字，英文，汉字）" >
</div>
<br/>

<button style="float:right;" class="am-btn am-btn-primary" id="editnickname" type="submit">
	
	</span>  保存信息
</button>
<br/>
<br/>
<script type="text/javascript" src="../js/person.js" ></script>